package ${package_name}.mapper;

import ${package_name}.model.${table_name};
import ${package_name}.query.${table_name}Query;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("${table_name?uncap_first}Mapper")
public interface ${table_name}Mapper {
    int deleteByPrimaryKey(String id);

    int insert(${table_name} record);

    int insertSelective(${table_name} record);

    ${table_name} selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(${table_name} record);

    int updateByPrimaryKey(${table_name} record);

    List<${table_name}> findByQuery(@Param("query") ${table_name}Query query);

}